package com.quanxiaoha.xiaohashu.distributed.id.generator.biz.core.segment.dao;


import com.quanxiaoha.xiaohashu.distributed.id.generator.biz.core.segment.model.LeafAlloc;

import java.util.List;

public interface IDAllocDao {
	List<LeafAlloc> getAllLeafAllocs();
	
	LeafAlloc updateMaxIdAndGetLeafAlloc(String tag);
	
	LeafAlloc updateMaxIdByCustomStepAndGetLeafAlloc(LeafAlloc leafAlloc);
	
	List<String> getAllTags();
}
